# -*- coding: utf-8 -*-

import logging

import py_global

logger = logging.getLogger(__name__)


class Context(object):

    def __enter__(self):
        logger.info('enter')
        return self

    def __exit__(self, exc_type, exc_val, exc_tb):
        logger.info('exit')


def test_context():
    with Context() as context:
        logger.info('context')


if __name__ == '__main__':
    test_context()
    pass
